import { defHttp } from '/@/utils/http/axios';

enum Api {
  typeList = '/taskCenter.taskType/getList',
  getTaskTypeById = '/taskCenter.taskType/getTaskTypeById',
  updateFullMark = '/taskCenter.taskType/updateFullMark',
  getTaskTypeNameById = '/taskCenter.taskType/getTaskTypeNameById',
  getTaskTypeNameByKey = '/taskCenter.taskType/getTaskTypeNameByKey',
}

export const getTaskTypeList = (params?: any) => defHttp.get<any>({ url: Api.typeList, params });
export const getTaskTypeById = (params?: any) => defHttp.get<any>({ url: Api.getTaskTypeById, params });
export const updateFullMark = (params?: any) => defHttp.post<any>({ url: Api.updateFullMark, params });
export const getTaskTypeNameById = (params?: any) => defHttp.get<any[]>({ url: Api.getTaskTypeNameById, params });
export const getTaskTypeNameByKey = (params?: any) => defHttp.get<any[]>({ url: Api.getTaskTypeNameByKey, params });
